package com.alaia.alaiaauth.config;

import com.alaia.alaiacommoncore.auth.encoding.MD5PasswordEncoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.password.PasswordEncoder;

/** 
* @author 作者 Alaia
* @version 创建时间 2020-11-23
* 装配密码匹配器
*/
@Configuration
public class PasswordConfig {
	@Bean
	public PasswordEncoder passwordEncoder()	{
//		return new BCryptPasswordEncoder();
		//这里，没有配置加密规则
		return  new MD5PasswordEncoder();
//		return new org.springframework.security.crypto.password.MessageDigestPasswordEncoder("MD5");
	}
}
